<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body th:with="myuri='http://localhost:8080/myweb/hello.jsp?name=张三'">
模板名称：<p th:text="${#execInfo.templateName}"></p><br>
模板模式：<p th:text="${#execInfo.templateMode}"></p><br>
<div th:with="mypath=${#uris.escapePath(myuri)}">
    编码的值：<p th:text="${mypath}"></p><br>
    解码的值：<p th:text="${#uris.unescapePath(mypath)}"></p><br>
</div>

原始日期：<p th:text="${mydate}"></p><br>
解析后的日期：<p th:text="${#dates.format(mydate,'yyyy-MM-dd HH:mm:ss')}"></p><br>

原始价格：<p th:text="${price}"></p>
<p th:text="'1='+${#numbers.formatInteger(price,0)}"></p>
<p th:text="'2='+${#numbers.formatInteger(price,3)}"></p>
<p th:text="'3='+${#numbers.formatInteger(price,4)}"></p>
<p th:text="'4='+${#numbers.formatDecimal(price,2,1)}"></p>

字符串数据：[[${myname}]]
<p th:if="${!#strings.isEmpty(myname)}">字符串不为null</p>
<p th:text="${#strings.substring(myname,0,2)}"></p>
<p th:text="${#strings.indexOf(myname,'san')}"></p>
<p th:text="${#strings.toUpperCase(myname)}"></p>
</body>
</html>